package com.example.minzhengtong.ui

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebView
import com.example.minzhengtong.base.BaseFg
import com.example.minzhengtong.databinding.FragmentThirdNewBinding
import com.gyf.immersionbar.ImmersionBar

/**
 * created by WY on 2021/5/27.
 */
class ThirdFGNew : BaseFg() {
    companion object {
        @JvmStatic
        fun newInstance() =
            ThirdFGNew().apply {
                arguments = Bundle().apply {
                }
            }
    }

    private lateinit var binding : FragmentThirdNewBinding


    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {

        binding = FragmentThirdNewBinding.inflate(inflater)
                // 启用javascript
        binding.webview.settings.javaScriptEnabled = true
        binding.webview.settings.useWideViewPort = true

        binding.webview.loadUrl("http://www.fujian.gov.cn");
        return binding.root
    }

    override fun initView() {
//        ImmersionBar.with(this).statusBarDarkFont(false).titleBar(binding.titleBar).init()

    }

    override fun initListener() {

    }

    override fun lazyLoad() {

    }
}